-- GENERATED SPELL FOR [Sky-Reaver Korm Blackscar] --


function spell0_30824(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30824', 653, 1)
end

function spell1_30824(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30824', 620, 1)
end

function Sorts_30824(pUnit, Event)
local choix_sorts_30824 = math.random(0, 1)
if choix_sorts_30824 == 0 then
pUnit:RegisterEvent('spell0_30824', 1, 1)
end
if choix_sorts_30824 == 1 then
pUnit:RegisterEvent('spell1_30824', 1, 1)
end
end

function mob30824_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30824', math.random(1500, 3000), 1)
end

function mob30824_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30824_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30824_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30824, 1, 'mob30824_Action')
RegisterUnitEvent(30824, 2, 'mob30824_Leave')
RegisterUnitEvent(30824, 3, 'mob30824_Kill')
RegisterUnitEvent(30824, 4, 'mob30824_Die')
